package com.ruoyi.cbs.project.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 项目停工申请对象 cbs_project_stop
 * 
 * @author ruoyi
 * @date 2025-11-21
 */
public class ProjectStop extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 停工主键 */
    private Long id;

    /** 停工编号 */
    @Excel(name = "停工编号")
    private String applicationNo;

    /** 项目id */
    @Excel(name = "项目id")
    private Long projectId;

    /** 项目名称 */
    @Excel(name = "项目名称")
    private String projectName;

    /** 承包商ID */
    @Excel(name = "承包商ID")
    private Long contractorId;

    /** 承包商名称 */
    @Excel(name = "承包商名称")
    private String contractorName;

    /** 停工原因 */
    @Excel(name = "停工原因")
    private String stopReason;

    /** 停工时长(天) */
    @Excel(name = "停工时长(天)")
    private Long stopDays;

    /** 相关证明文件路径 */
    @Excel(name = "相关证明文件路径")
    private String attachment;

    /** 停工状态: 1待审核 2已停工 3已撤回 */
    @Excel(name = "停工状态: 1待审核 2已停工 3已撤回")
    private String status;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

    /** 审核人ID */
    @Excel(name = "审核人ID")
    private Long approvalUserId;

    /** 审核人姓名 */
    @Excel(name = "审核人姓名")
    private String approvalUserName;

    /** 审核结果: 0 待审 1通过 2退回修改 */
    @Excel(name = "审核结果: 0 待审 1通过 2退回修改")
    private String approvalStatus;

    /** 审核意见 */
    @Excel(name = "审核意见")
    private String comment;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date approvalTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setApplicationNo(String applicationNo) 
    {
        this.applicationNo = applicationNo;
    }

    public String getApplicationNo() 
    {
        return applicationNo;
    }

    public void setProjectId(Long projectId) 
    {
        this.projectId = projectId;
    }

    public Long getProjectId() 
    {
        return projectId;
    }

    public void setProjectName(String projectName) 
    {
        this.projectName = projectName;
    }

    public String getProjectName() 
    {
        return projectName;
    }

    public void setContractorId(Long contractorId) 
    {
        this.contractorId = contractorId;
    }

    public Long getContractorId() 
    {
        return contractorId;
    }

    public void setContractorName(String contractorName) 
    {
        this.contractorName = contractorName;
    }

    public String getContractorName() 
    {
        return contractorName;
    }

    public void setStopReason(String stopReason) 
    {
        this.stopReason = stopReason;
    }

    public String getStopReason() 
    {
        return stopReason;
    }

    public void setStopDays(Long stopDays) 
    {
        this.stopDays = stopDays;
    }

    public Long getStopDays() 
    {
        return stopDays;
    }

    public void setAttachment(String attachment) 
    {
        this.attachment = attachment;
    }

    public String getAttachment() 
    {
        return attachment;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public void setApprovalUserId(Long approvalUserId) 
    {
        this.approvalUserId = approvalUserId;
    }

    public Long getApprovalUserId() 
    {
        return approvalUserId;
    }

    public void setApprovalUserName(String approvalUserName) 
    {
        this.approvalUserName = approvalUserName;
    }

    public String getApprovalUserName() 
    {
        return approvalUserName;
    }

    public void setApprovalStatus(String approvalStatus) 
    {
        this.approvalStatus = approvalStatus;
    }

    public String getApprovalStatus() 
    {
        return approvalStatus;
    }

    public void setComment(String comment) 
    {
        this.comment = comment;
    }

    public String getComment() 
    {
        return comment;
    }

    public void setApprovalTime(Date approvalTime) 
    {
        this.approvalTime = approvalTime;
    }

    public Date getApprovalTime() 
    {
        return approvalTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("applicationNo", getApplicationNo())
            .append("projectId", getProjectId())
            .append("projectName", getProjectName())
            .append("contractorId", getContractorId())
            .append("contractorName", getContractorName())
            .append("stopReason", getStopReason())
            .append("stopDays", getStopDays())
            .append("attachment", getAttachment())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("approvalUserId", getApprovalUserId())
            .append("approvalUserName", getApprovalUserName())
            .append("approvalStatus", getApprovalStatus())
            .append("comment", getComment())
            .append("approvalTime", getApprovalTime())
            .toString();
    }
}
